<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<%@ page session="false" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="com.net.test.vo.TestVO" %>

<script>
function go_View(){
	var frm = document.writeFrm;
	
	frm.action = "/testView.ncb";
	frm.submit();
	
}
function  go_edit(param1,param2,param3){
	var frm = document.writeFrm;
	
	frm.idEdit1.value = param1;
	frm.nameEdit2.value = param2;
	frm.passEdit3.value = param3;	
	frm.action = "/testEdit.ncb";
	frm.submit();
}
function go_write(){
	var frm = document.writeFrm;
	frm.action = "/testLogout.ncb";
	frm.submit();
	
}

</script>


<br />
<h1>로그인되었습니다</h1> 
<br />

<form name="writeFrm" method="POST" >

	<input type="hidden" name="idEdit1">
	<input type="hidden" name="nameEdit2">
    <input type="hidden" name="passEdit3">
    <br>
	<br>
	<br>
	<br>

	<table border="1" style="width:200px;">
	<%TestVO view = (TestVO)request.getAttribute("view"); %>
	
	<tr>
           
        </tr>
    		
	</table>	
	<input type="button" value="회원가입" onclick="javascript:go_View();" />
	<input type="button" value="정보수정" onclick="javascript:go_edit('<%=view.getId()%>','<%=view.getName() %>','<%=view.getPassword()%>');" />
	<input type="button" value="로그아웃" onclick="javascript:go_write();" />
	<br /><br /><br />

</form>





